﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ExpressionUtil.Extension
{
    /// <summary>
    /// 扩展函数执行环境变量
    /// </summary>
    public class ExtExecuteContext
    {
        /// <summary>
        /// 参数集合
        /// </summary>
        private List<ExtFunctionValueInfo> parameters;

        /// <summary>
        /// 返回值信息
        /// </summary>
        private ExtFunctionValueInfo returnValue;

        /// <summary>
        /// 默认构造函数
        /// </summary>
        public ExtExecuteContext()
        {
            this.parameters = new List<ExtFunctionValueInfo>();
            this.returnValue = new ExtFunctionValueInfo();
        }

        /// <summary>
        /// 获取或设置参数集合
        /// </summary>
        public List<ExtFunctionValueInfo> Parameters
        {
            get
            {
                return this.parameters;
            }
        }

        /// <summary>
        /// 获取或设置返回值信息
        /// </summary>
        public ExtFunctionValueInfo ReturnValueInfo
        {
            get
            {
                return this.returnValue;
            }
        }
    }
}
